<?php


namespace support\exception;

use support\Response;

class HttpException extends Exception
{
    protected $response = null;

    public function __construct($msg, $code = 200, $header = [])
    {
        $this->response = new Response($code, $header, $msg);
    }

    public function getResponse()
    {
        return $this->response;
    }

}
